﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Onshi.POS.Formularios.Recursos
{
    public partial class Procesando : FormularioBase
    {
        #region Constructores

        public Procesando()
        {
            InitializeComponent();
            teclaEscape = false;
        }

        #endregion

        #region Eventos

        private void Procesando_KeyDown(Object sender, KeyEventArgs e)
        {
            if (e.Alt && e.KeyCode == Keys.F4)
                e.SuppressKeyPress = true;
            if (e.KeyCode == Keys.Escape)
                e.SuppressKeyPress = true;
        }

        #endregion
        
        private void Procesando_Load(object sender, EventArgs e)
        {
            Opacity = 0;
            timProcesando.Enabled = true;
        }

        private void timProcesando_Tick(object sender, EventArgs e)
        {
            timProcesando.Enabled = false;
            Opacity = 100;
        }
    }
}
